package cron.core;

import cron.admin.model.vo.TaskInstanceVo;
import cron.core.loader.JarResourceLoader;
import cron.core.scheduler.trigger.Trigger;

import java.net.JarURLConnection;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author : willian fu
 * @version : 1.0
 * @date : 2021/2/26 0026 16:46
 */
public class ResourceTaskScheduler {

    //类加载器缓存
    public static final Map<String, JarResourceLoader> CLASS_LOADERS = new ConcurrentHashMap<>();

    //Jar包连接器
    public static final Map<String, JarURLConnection> URL_CONNECTS = new ConcurrentHashMap<>();

    //触发器实例
    public static final Map<String, Trigger> TASK_TRIGGERS = new ConcurrentHashMap<>();

    //任务实例
    public static final Map<String, TaskInstanceVo> TASK_INSTANCES = new ConcurrentHashMap<>();
}
